<?php

use Illuminate\Database\Migrations\Migration;

class CreateServicesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('services', function($table)
	    {
	        $table->increments('id');
	        $table->string('user_id');
	        $table->string('name');
	        $table->string('category_id');

	        // 1 Upfront , 2 twoPLUGS ,3 
			$table->enum('payment', array('Upfront', 'twoPLUGS', 'PayAfter'))->default('Upfront');


			$table->timestamp('service_time');
           
            // 1 start , 2 suspend ,3 complete 
	        $table->integer('status');

	        $table->timestamps();
	    });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}